package de.logicline.cvss.ui.view.list;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;


public class ListContentProvider implements IStructuredContentProvider {

	List entries = null;

	public Object[] getElements(Object inputElement) {
		if (inputElement instanceof List) {
			return ((java.util.List) inputElement).toArray();
		}
		return new Object[0];
	}

	public void dispose() {
	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		entries = (List) newInput;
	}

}
